package com.bear.newsset.entity;

import java.io.Serializable;
import java.util.IdentityHashMap;
import java.util.List;

/**
 * 新闻主数据
 */
public class NewsDataEntity implements Serializable {
    private String id;                                              //新闻的唯一id
    private String title;                                           //标题
    private String url;                                             //文章链接
    private List<String> imageUrls;                                 //图片
    private String mainLable;                                       //主标签
    private String childLable;                                      //子标签
    private String appCode;                                         //网站
    private String sourceRegion;                                    //数据源地区
    private int publishDate;                                        //公开时间
    private List<IdentityHashMap<String, String>> entities;         //识别的实体名

    @Override
    public String toString() {
        return "NewsDataEntity{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", imageUrls=" + imageUrls +
                ", mainLable='" + mainLable + '\'' +
                ", childLable='" + childLable + '\'' +
                ", appCode='" + appCode + '\'' +
                ", sourceRegion='" + sourceRegion + '\'' +
                ", publishDate=" + publishDate +
                ", entities=" + entities +
                '}';
    }

    public int getPublishDate() {
        return publishDate;
    }

    public NewsDataEntity setPublishDate(int publishDate) {
        this.publishDate = publishDate;
        return this;
    }

    public String getId() {
        return id;
    }

    public NewsDataEntity setId(String id) {
        this.id = id;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public NewsDataEntity setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public NewsDataEntity setUrl(String url) {
        this.url = url;
        return this;
    }

    public List<String> getImageUrls() {
        return imageUrls;
    }

    public NewsDataEntity setImageUrls(List<String> imageUrls) {
        this.imageUrls = imageUrls;
        return this;
    }

    public String getMainLable() {
        return mainLable;
    }

    public NewsDataEntity setMainLable(String mainLable) {
        this.mainLable = mainLable;
        return this;
    }

    public String getChildLable() {
        return childLable;
    }

    public NewsDataEntity setChildLable(String childLable) {
        this.childLable = childLable;
        return this;
    }

    public String getAppCode() {
        return appCode;
    }

    public NewsDataEntity setAppCode(String appCode) {
        this.appCode = appCode;
        return this;
    }

    public String getSourceRegion() {
        return sourceRegion;
    }

    public NewsDataEntity setSourceRegion(String sourceRegion) {
        this.sourceRegion = sourceRegion;
        return this;
    }

    public List<IdentityHashMap<String, String>> getEntities() {
        return entities;
    }

    public NewsDataEntity setEntities(List<IdentityHashMap<String, String>> entities) {
        this.entities = entities;
        return this;
    }
}